package com.service.yk.oktttpdemo.api;

import com.service.yk.oktttpdemo.util.OkHttpUtil;
import lombok.extern.slf4j.Slf4j;

/**
 * @author wangyongkun
 * @Description:
 * @Date: 2020/4/2 18:36
 */
@Slf4j
public class TryIt {


    public static void main(String[] args) {
     String url= "http://127.0.0.1:8883/chj-service-tur/api/tur-corporate-customer/find-all";
        String resp = OkHttpUtil.doGet(url);
       //log.info("请求返回值:{}",resp);
        String loUrl="http://127.0.0.1:8883/chj-service-tur/api/region/list/less-than/cache";
        String s = OkHttpUtil.syncDoPost(loUrl, "{ \"level\": 1}");
        log.info("请求返回值:{}",s);
    }
}
